// 持久层
// 引入mongoose模块
const mongoose = require("mongoose");

let announcementsSchema = new mongoose.Schema({
    name: String, // 操作人员
    content: String, // 发布内容
});

module.exports = mongoose.model("announcementsModel", announcementsSchema, "announcements");